import request from "../request.js"

function  index(){
    return request({
        method:"get",
        url:"/index/index",
    })
}

function goodsList(data){
    return request({
        method:"get",
        url:"/goods/goodsList",
        data
    })
}

function detailaction(data){
    return request({
        method:"get",
        url:"/brand/detailaction",
        data
    })
}

function info(data){
    return request({
        method:"get",
        url:"/goods/detailaction",
        data
    })
}

function topic(data){
    return request({
        method:"get",
        url:"/topic/detailaction",
        data
    })
}

function addCart(data){
    return request({
        method:"post",
        url:"/cart/addCart",
        data
    })
}

function addcollect(data){
    return request({
        method:"post",
        url:"/collect/addcollect",
        data
    })
}

function listAction(data){
    return request({
        url:"/collect/listAction",
        data
    })
}

function getListAction(data){
    return request({
        url:"/address/getListAction",
        data
    })
}

function saveAction(data){
    return request({
        method:"post",
        url:"/address/saveAction",
        data
    })
}

function addressInfo(data){
    return request({
        url:"/address/detailAction",
        data
    })
}

function submitAction(data){
    return request({
        method:"post",
        url:"/feedback/submitAction",
        data
    })
}


function deleteAction(data){
    return request({
        url:"/address/deleteAction",
        data
    })
}

export { index, goodsList, detailaction, info, topic, 
    addCart, addcollect, listAction, getListAction, saveAction, addressInfo, submitAction, deleteAction }




  